let gitannexcmd = tmpdir </> literalOsPath "git-annex.cmd"\r
F.writeFileString gitannexcmd "git annex %*"\r
F.writeFileString (toOsPath nsifile) $ makeInstaller\r
- gitannex gitannexcmd license htmlhelp (winPrograms ++ magicDLLs') magicShare'\r
+ gitannex (fromOsPath gitannexcmd) license\r
+ (fromOsPath htmlhelp)\r
+ (winPrograms ++ magicDLLs')\r
+ magicShare'\r
[ webappscript, autostartscript ]\r
mustSucceed "makensis" [File nsifile]\r
removeFile (toOsPath nsifile) -- left behind if makensis fails\r